//
//  Contact.m
//  04-集合（二）
//
//  Created by dllo on 16/7/7.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "Contact.h"

@implementation Contact


- (instancetype)initWithName:(NSString *)name
                 phoneNumber:(NSString *)phoneNumber;
{
    self = [super init];
    if (self) {
        _name = name;
        _phoneNumber = phoneNumber;
    }
    return self;
}


- (NSString *)description
{
    return [[NSString alloc] initWithFormat:@"%@,%@,%@,%ld",_sex,_address,_groupName,_age];
}



- (void)showContact
{
    NSLog(@"%@",self);
}



@end
